package com.city.service.auth.impl;

import com.city.domain.auth.AuthLevelPub;
import com.city.repository.auth.AuthLevelPubRepository;
import com.city.service.auth.AuthLevelPubService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AuthLevelPubServiceImpl implements AuthLevelPubService {


    @Autowired
    private AuthLevelPubRepository authLevelPubRepository;

    @Override
    public List<AuthLevelPub> findAll() {
        return authLevelPubRepository.findAll();
    }

    @Override
    public AuthLevelPub findById(int id) {
        return authLevelPubRepository.findOne(id);
    }

    @Override
    public void save(AuthLevelPub authLevelPub) {
        authLevelPubRepository.save(authLevelPub);
    }
}
